package com.copa.l2469;

/**
 * @author copa
 * @createDate 2023-03-21 9:21
 * @function 模拟法
 */
public class Test1 {

    public double[] convertTemperature(double celsius) {
        double[] result = new double[2];
        result[0] = celsius + 273.15000;
        result[1] = celsius * 1.80000 + 32.00000;
        return result;
    }

    public static void main(String[] args) {
        double celsius = 122.11;
        double[] result = new Test1().convertTemperature(celsius);
        System.out.println(result[0] + ":" + result[1]);
    }
}
